package com.yyf.springboot2.service;

import com.yyf.springboot2.address.Area;
import com.yyf.springboot2.address.City;
import com.yyf.springboot2.address.Province;

import java.util.List;

public interface AddressService {
    void  init();

    /**
     * 获取省列表
     * @return
     */
    List<Province> getProvinces();

    /**
     * 获取市
     * @param province
     * @return
     */
    List<City> getCities(Integer province);

    /**
     * 获取区县
     * @param city
     * @return
     */
    List<Area> getCounties(Integer city);
}
